<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/upload.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
<script type="text/javascript" src="/resource/js/admin/zhuantiedit.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>网站维护 > <a href="./">专题频道管理</a> > ${(zhuanti.id == 0)?string("新建","修改")}专题频道</div>
	<form method="post" action="editdo" onsubmit="return checkform()">
		<div class="rightbody m">
			<div class="rightbodycontent">
				<table cellspacing="1" cellpadding="4" class="tableedit">
					<tr>
						<td>频道名称：</td>
						<td>
							<input type="text" name="name" id="name" value="${zhuanti.name!}" style="width:200px" /> <span style="color:red">*</span>
						</td>
					</tr>
					<tr>
						<td>URL目录：</td>
						<td>
							<input type="text" name="urldirectory" id="urldirectory" value="${zhuanti.urldirectory!}" style="width:200px" /> <span style="color:red">*</span> 请使用英文字母，不要包含中文、标点等特殊符号。
						</td>
					</tr>
					<tr>
						<td>数据模型：</td>
						<td>
		                	<select name="datamodelid">
		                	<#list datamodels as datamodel>
		                		<option value="${datamodel.id}"<#if zhuanti.datamodel?? && datamodel.id == zhuanti.datamodel.id> selected</#if>>${datamodel.name}</option>
		                	</#list>
		                    </select>
		                </td>
					</tr>
		            <tr>
		            	<td>模板选择：</td>
						<td>
		                	<select name="template">
		                	<#list templatefiles as templatefile>
		                		<#if templatefile.name?contains('.htm') && templatefile.name?starts_with('zhuanti')>
		                			<option value="${templatefile.name}"<#if zhuanti.template?? && templatefile.name == zhuanti.template> selected</#if>>${templatefile.name}</option>
		                		</#if>
		                	</#list>
		                    </select>
		                </td>
		            </tr>
					<tr>
						<td>封面图片：</td>
						<td>
						    <input type="text" name="image" id="image" value="${zhuanti.image!}" style="width:300px;" />
						    <a class="linkbtn upload">本地上传</a>
							<input type="file" id="imagefile" name="srcfile" class="uploadfile" onchange="upload()" accept="image/*" />
							<img id="image_pre" height="25" src="${zhuanti.image!}" class="uploaditem" style="display:${(!zhuanti.image??)?string('none','inline')}" />
		                    <span id="uploading" class="uploaditem" style="display:none;">正在上传中...</span>
						</td>
					</tr>
					<tr>
						<td>排序：</td>
						<td>
							<input type="text" name="sort" id="sort" value="${zhuanti.sort}" /> <span style="color:red">*</span>
						</td>
					</tr>
				</table>
				<input type="hidden" name="zhuantiid" value="${zhuanti.id}" />
			</div>
		</div>
		<div class="rightfoot">
			<div class="rightfootcontent">
				<input type="button" value="返 回" class="return" onclick="history.back()" />&nbsp;
	            <input type="submit" value="保 存" class="save" />
            </div>
        </div> 
	</form>
</body>
</html>